package com.eol.entity.po.log;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;


/**
 * 接口调用日志
 *
 * @author liulinhui
 * @email 1249055292@qq.com
 * @date 2019-12-09 12:27:01
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel("接口调用日志")
public class ZInterfaceLog implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "流水号")
    @Id
    private Long uuid;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "手机号码")
    private String phoneNum;

    @ApiModelProperty(value = "调用服务名字")
    private String resourceName;

    @ApiModelProperty(value = "URL")
    private String url;

    @ApiModelProperty(value = "调用时间")
    private Date time;

    @ApiModelProperty(value = "消耗时长")
    private Integer consumeTime;

    @ApiModelProperty(value = "入参")
    private String param;

    @ApiModelProperty(value = "出参")
    private String result;

    @ApiModelProperty(value = "1：成功 0：失败")
    private Integer status;

    @ApiModelProperty(value = "客户端IP地址")
    private String clientIp;

    @ApiModelProperty(value = "客户端地址")
    private String location;

}
